home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Windows CE Path.xpl < prev    next >
Text File  |  1999-09-25  |  1KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="4"
  3. "COUNT"="1"
  4. "UIPATH"="System\File System\Folders: System"
  5. "NAME"="CE File Sync Folder"
  6. "VERSION"="1.32"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Path"
  9. "DESCRIPTION 1"="You can alter the synchronization path for the first Windows CE HPC here."
  10. "DESCRIPTION 2"="Note that this plug-in will only work if your HPC was already connected!"
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. sPath1="HKCU\Software\Microsoft\Windows CE Services\Partners"
  17. sPath2="\Services\Synchronization\Briefcase Path"
  18. sPathEx=""
  19. Sub Plugin_Initialize 
  20.  if RegPathExists(sPath1) then
  21.   iCount=RegEnumPaths(sPath1)
  22.  
  23.   if iCount>0 then
  24.    s=RegEnumElement(1)
  25.    sPathEx=sPath1 & "\" & s & sPath2
  26.  
  27.    s=RegReadValue(sPathEx)
  28.    Call SetUIElement(1,s) 'set data in X-Setup
  29.   else
  30.    Disable
  31.   end if
  32.  else
  33.   Disable
  34.  end if
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  s=GetUIElement(1)
  42.  
  43.  if Right(s,1)<>"\" then
  44.   s=s & "\"
  45.  end if
  46.  
  47.  Call RegWriteValue(sPathEx,s,1)
  48. End Sub
  49.  
  50. Sub Plugin_Terminate 
  51. End Sub
  52.